//
//  TypeMenuview.m
//  ZYShang
//
//  Created by wangguangming on 15/8/5.
//  Copyright © 2015年 Amber. All rights reserved.
//

#import "TypeMenuview.h"
#import "Base.h"
@implementation TypeMenuview
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
        {
        self.backgroundColor=COLOR;
        [self addall];
        }
    return self;
}
-(void)addall
{
    self.receiveButton=[[UIButton alloc] initWithFrame:CGRectMake(0, 0, 110, 39)];
        //    self.readyButton.backgroundColor=[UIColor blackColor];
    
    self.noReceiveButton=[[UIButton alloc] initWithFrame:CGRectMake(0, 40, 110,39)];
        //    self.noButton.backgroundColor=[UIColor blackColor];
    
    self.nobodyButton=[[UIButton alloc] initWithFrame:CGRectMake(0, 80, 110, 39)];
        //    self.detailsButton.backgroundColor=[UIColor blackColor];
    self.questButton=[[UIButton alloc] initWithFrame:CGRectMake(0, 120, 110, 39)];
    
    
    
    [self.receiveButton setTitle:@"签收" forState:UIControlStateNormal];
    
    [self.noReceiveButton setTitle:@"拒签" forState:UIControlStateNormal];
    
    [self.nobodyButton setTitle:@"失联" forState:UIControlStateNormal];
    
    [self.questButton setTitle:@"问题件" forState:UIControlStateNormal];
    
    [self.receiveButton setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
    
    [self.noReceiveButton setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
    
    [self.nobodyButton setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
    
    [self.questButton setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
    
    [self addSubview:self.receiveButton];
    [self addSubview:self.nobodyButton];
    [self addSubview:self.noReceiveButton];
    [self addSubview:self.questButton];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
